package cn.ljw.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;

import java.util.Date;

/**
 * @author 一朝风月
 * @date 2024/3/27 11:55
 * @Code 面向注解面向卿，终无解释再无你
 * @description
 */
@Data
public class BaseEntity {
    @TableId(type = IdType.AUTO)
    protected Integer id;
    protected Date created=new Date();
    @TableField(value = "modified",update = "now()")
    protected Date modified=new Date();
    @TableLogic
    protected Integer deleted=0;
}
